package com.ccp.dev.workflow.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.workflow.bpminterface.IActDefMapper;
import com.ccp.dev.workflow.model.BpmNodeMessage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassDescribe:
 * 流程节点消息 数据交换层
 * @author :wangcheng
 * Date: 2019-07-17
 */
@Repository
public interface BpmNodeMessageDao extends IBaseMapper<BpmNodeMessage, String>, IActDefMapper {
    /**
     * 根据流程定义id和节点id取得消息列表
     * @param procDefId 流程定义id
     * @param nodeId 节点id
     * @return
     */
    List<BpmNodeMessage> queryByProcDefIdAndNodeId(@Param("procDefId") String procDefId, @Param("nodeId") String nodeId);

    /**
     * 根据流程定义id
     * @param procDefId 流程定义id
     * @return
     */
    List<BpmNodeMessage> queryByProcDefId(String procDefId);
}
